<?php

/*
Delete Trivia Question (admin_delete_trivia.pro.php)
*/

$page_title = "Delete Trivia Question";
$rank_check = 7;
include "../global.inc.php";

$check = fetch("SELECT id FROM trivia_questions WHERE id = '$delete_id' AND game = '$game'");

if ($check[id] == "")
{
	die(header(error("admin_list_trivia_questions.php","Error.")));
}
else
{
	mysql_query("DELETE FROM trivia_questions WHERE id = '$delete_id' AND game = '$game'");
	die(header(error("admin_list_trivia_questions.php","Question successfully deleted.")));
}

?>
